package generator

import (
	"gitee.com/yanwc/ebike-vcom-device/internal/field"
	"github.com/brianvoe/gofakeit/v6"
)

func RandomStatusBit32() field.StatusBit32 {
	var sb field.StatusBit32
	
	if gofakeit.Bool() {
		sb &= field.Sb32_20_SDKActivateStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_19_CameraConnected
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_18_IntelligenceHelmetLockStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_17_HelmetBatteryChangeStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_16_KickStandSlotStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_15_G_SensorStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_14_PowerSwitchStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_13_12_00_IsHasHelmetStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_13_12_01_WoreHelmetStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_13_12_10_NotWornHelmetStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_11_HelmetLockSwitchStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_10_HelmetSlotStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_9_BatteryStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_8_LocateMode
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_7_BikeMoveOrNotStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_6_BackWheelRotatingStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_5_BatteryCompartmentStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_4_HeadlampStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_3_BackseatLockStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_2_BackWheelLockStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_1_DefendStatus
	}

	if gofakeit.Bool() {
		sb &= field.Sb32_0_PowerStatus
	}

	return sb
}
